package com.zelix;

import javax.swing.*;


public class g2 extends JFrame
    implements ey
{

    protected static final String a;
    public static boolean b;

    public g2()
    {
        b();
    }

    public g2(String s)
    {
        super(s);
        b();
    }

    public void a()
    {
        setVisible(false);
        dispose();
    }

    private void b()
    {
        e();
    }

    protected void c()
    {
    }

    public Action d()
    {
        return new n1(this);
    }

    public void e()
    {
        Action action = d();
        KeyStroke keystroke = KeyStroke.getKeyStroke('\033');
        getRootPane().registerKeyboardAction(action, keystroke, 1);
        getRootPane().registerKeyboardAction(action, keystroke, 2);
    }

    public void setVisible(boolean flag)
    {
        super.setVisible(flag);
        if(flag)
            c();
    }

    public void a(gs gs, Object obj, Object obj1, Object obj2)
    {
    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key =0x67;
                    break;
                case 1:
                    key =28;
                    break;
                case 2:
                    key =15;
                    break;
                case 3:
                    key =96;
                    break;
                case 4:
                    key =5;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        a = System.getProperty(z("\013ua\005+\024y\177\001w\006h`\022".toCharArray()));
    }
}